<include file="./Tpl/Admin/header.html" />
<div class="main">
  <div class="main_title"> <img src="/Public/Admin/images/book1.gif"/>&nbsp;&nbsp;商品列表 </div>
  <div class="list_body">
    <form action="" method="post" id="formid">
      <table cellspacing=0 cellpadding=0 border=0>
        <tr><a href="?s=Admin/Goods/index">添加商品</a></tr>
        <tr>
          <th>商品名称</th>
          <th>商品图片</th>
		      <th>商品分类</th>
          <th>市场价</th>
          <th>会员价</th>
		   <th>人民币比例</th>
          <th>总库存</th>
		  <th>添加时间</th>
          <th>地址</th>
          <th>电话</th>
		  <th>位置</th>
		  <th>状态</th>
          <th>操作</th>
        </tr>
        <volist name="list" id="vo" empty="$empty">
          <tr>
         
            <td>{$vo.title}</td>
            <td><img src="{$vo.pic}" style="width:50px;"></td>
			<td>{$vo.cat_name}</td>
            <td>{$vo.money}</td>
            <td>{$vo.money_new}</td>
			    <td>{$vo.rmb_bili}%</td>
			   <td>{$vo.num}</td>
            <td>{$vo.add_time|date="Y-m-d H:i:s",###}</td>
			   <td>{$vo.address}</td>
            <td>{$vo.tel}</td>
			      <td>{$vo['position']?'热卖位置':'常规位置'}</td>
				        <td>{$vo['status']?'已开启':'未开启'}</td>
            <td>
              <p><a href="?s=Admin/Goods/goods_del/id/{$vo.id}">删除</a></p>
			      <p><a href="?s=Admin/Goods/index/id/{$vo.id}">修改</a></p>
				      <p><a href="?s=Admin/Goods/goods_status/id/{$vo.id}"><eq name="vo.status" value="0">开启<else />关闭 </eq></a></p>
					  <p><a href="?s=Admin/Goods/goods_position/id/{$vo.id}"><eq name="vo.position" value="0">开启热卖位置<else /> 开启常规位置</eq></a></p>
					  
			<td>
          </tr>
        </volist>
        <tr>
          <td colspan=15 class="page"><!--<a href="?s=Admin/Draw/index/page/1{$urls}">首页</a> <a href="?s=Admin/Draw/index/page/{$page-1}{$urls}">上一页</a> <a href="?s=Admin/Draw/index/page/{$page+1}{$urls}">下一页</a> <a href="?s=Admin/Draw/index/page/{$page_num}{$urls}">尾页</a> -->{$page} </td>
        </tr>
      </table>
    </form>
  </div>
</div>
<script type="text/javascript">
	$(document).ready(function(e) {
        //打开子菜单
			$("#collapseTen").addClass("in");	
    });
</script>
<include file="./Tpl/Admin/footer.html" /> 